fix typos caught by codespell
authorTshepang Lekhonkhobe <tshepang@gmail.com>
Wed, 6 May 2015 00:05:41 +0000 (02:05 +0200)
committerTshepang Lekhonkhobe <tshepang@gmail.com>
Wed, 6 May 2015 00:05:41 +0000 (02:05 +0200)
src/cargo/ops/cargo_rustc/job.rs
src/cargo/ops/cargo_rustc/job_queue.rs
src/cargo/sources/registry.rs
src/cargo/util/mtime.rs
src/registry/lib.rs
tests/test_cargo_bench.rs
tests/test_cargo_compile_git_deps.rs

index 4467d37e6badbc26b6d10ed604c4466fc42d9ab1..b3d58e1d62835f25cba448397939cc2fa23fa9e5 100644 (file)
@@ -5,7 +5,7 @@ use util::{CargoResult, Fresh, Dirty, Freshness};
 pub struct Job { dirty: Work, fresh: Work }
 
 /// Each proc should send its description before starting.
-/// It should send either once or close immediatly.
+/// It should send either once or close immediately.
 pub struct Work {
     inner: Box<FnBox<Sender<String>, CargoResult<()>> + Send>,
 }
index 435de0fb5a74f83d9a4dc192841d5ce7b8b72100..3f74e85e98fe11540a93c971c574c48dfe8ca00c 100644 (file)
@@ -198,7 +198,7 @@ impl<'a> JobQueue<'a> {
         Ok(())
     }
 
-    // This isn't super trivial becuase we don't want to print loads and
+    // This isn't super trivial because we don't want to print loads and
     // loads of information to the console, but we also want to produce a
     // faithful representation of what's happening. This is somewhat nuanced
     // as a package can start compiling *very* early on because of custom
index e9c87b0aae02f539aa481b0a159a0b095ea9fd9d..98d99576ddaf488a9365a63ab1eb86e88fcf4147 100644 (file)
@@ -316,7 +316,7 @@ impl<'a, 'b> RegistrySource<'a, 'b> {
         // TODO: don't download into memory (curl-rust doesn't expose it)
         let resp = try!(handle.get(url.to_string()).follow_redirects(true).exec());
         if resp.get_code() != 200 && resp.get_code() != 0 {
-            return Err(internal(format!("Failed to get 200 reponse from {}\n{}",
+            return Err(internal(format!("Failed to get 200 response from {}\n{}",
                                         url, resp)))
         }
 
index c0701fd73f11e5a9da697b6ddf1daa28ee762cc9..13d4296bcd47011ac9590e1044e99d03124e03b6 100644 (file)
@@ -5,7 +5,7 @@ use std::path::Path;
 
 /// A helper structure to represent the modification time of a file.
 ///
-/// The actual value contined within is platform-specific and does not have the
+/// The actual value contained within is platform-specific and does not have the
 /// same meaning across platforms, but comparisons and stringification can be
 /// significant among platforms.
 #[derive(Eq, PartialEq, Ord, PartialOrd, Debug, Copy, Clone)]
index c7ba6f0298914202b9299ea65d8083af7868de15..331933bda80e13dcab6a522d96749184a5f8607e 100644 (file)
@@ -251,7 +251,7 @@ fn handle(response: result::Result<http::Response, curl::ErrCode>)
 impl fmt::Display for Error {
     fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
         match *self {
-            Error::NonUtf8Body => write!(f, "reponse body was not utf-8"),
+            Error::NonUtf8Body => write!(f, "response body was not utf-8"),
             Error::Curl(ref err) => write!(f, "http error: {}", err),
             Error::NotOkResponse(ref resp) => {
                 write!(f, "failed to get a 200 OK response: {}", resp)
index 2d643fbf203073d7f5a94a3948323e378ded7ea2..7c5dba75296112c3dab541ac9cfda40c155d05ed 100644 (file)
@@ -68,7 +68,7 @@ test!(bench_tarname {
 
     let expected_stdout = format!("\
 {compiling} foo v0.0.1 ({dir})
-{runnning} target[..]release[..]bin2[..]
+{running} target[..]release[..]bin2[..]
 
 running 1 test
 test run2 ... bench:         0 ns/iter (+/- 0)
@@ -77,7 +77,7 @@ test result: ok. 0 passed; 0 failed; 0 ignored; 1 measured
 
 ",
        compiling = COMPILING,
-       runnning = RUNNING,
+       running = RUNNING,
        dir = prj.url());
 
     assert_that(prj.cargo_process("bench").arg("--bench").arg("bin2"),
index 2382e4732732f31d870de8fb7e9365cd79cfb985..b760ec39fed57c4aa514b914636f456bea129cc4 100644 (file)
@@ -225,7 +225,7 @@ test!(cargo_compile_git_dep_tag {
             "#)
     }).unwrap();
 
-    // Make a tag correponding to the current HEAD
+    // Make a tag corresponding to the current HEAD
     let repo = git2::Repository::open(&git_project.root()).unwrap();
     let head = repo.head().unwrap().target().unwrap();
     repo.tag("v0.1.0",